<template>
  <div class="school">
      <div class="school1">
        <div class="left">
          <ul>
            <li class="newsdetail">
                  <img src="http://img3.tqcaifu.com/img/index-4.png" alt="">
                  <div class="newsinfo">
                      <nuxt-link target="_blank" to="'/post/'"><h1>为啥要资产配置？</h1></nuxt-link>
                      <h2>大师傅士大夫 大师傅士大夫士大傅士大夫 大师傅士大夫士大夫大师傅大师傅士大夫士大夫士大傅士大夫 大师傅士大夫士大夫大师傅大师傅士大夫士大夫士大傅士大夫 大师傅士大夫士大夫大师傅大师傅士大夫士大夫士大傅士大夫 大师傅士大夫士大夫大师傅大师傅士大夫士大夫士大夫大师傅大师傅士大夫士大夫士大夫似的士大夫似的</h2>
                      <p>
                          <span><i class="el-icon-time"></i>2018-05-06</span>
                          <span><i class="el-icon-view"></i>阅读：9999</span>
                      </p>
                  </div>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>
              <li class="newsdetail2">
                <span class="dian"></span>
                <nuxt-link target="_blank" to="'/post/'">为啥要资产配置？</nuxt-link>
                <span class="time">2018-05-06</span>
              </li>

          </ul>
        </div>
        <div class="right">
            <div class="zhuanti">
            <img src="http://img3.tqcaifu.com/img/index-1.png" alt="">
            <div class="msg">
                <h1>股权时代来临，</h1>
                <h1>如何选中下一个独角兽？</h1>
            </div>
          </div>
          <div class="zhuanti">
            <img src="http://img3.tqcaifu.com/img/index-2.png" alt="">
            <div class="msg">
                <h1>政策红利持续释放，</h1>
                <h1>开启25万亿掘金时代</h1>          
            </div>
          </div>
          <div class="zhuanti">
            <img src="http://img3.tqcaifu.com/list/zhuanti5.png" alt="">
            <div class="msg">
                <h1>立足国内，</h1>
                <h1>享全球市场红利</h1>          
            </div>
          </div>
          <div class="zhuanti">
            <img src="http://img3.tqcaifu.com/list/zhuanti6.png" alt="">
            <div class="msg">
                <h1>2018年最新资产配置报告</h1>
                <h2 @click="lingqu">点击领取</h2>          
            </div>
          </div>
        </div>
      </div>
      <div class="erweima">
        <img src="http://img3.tqcaifu.com/img/guquanerweima.png" alt="">
      </div>
      <div class="lanmu">
        <el-row>
          <el-col :span="6" class="newsbox">
            <div class="title">
              <img src="http://img3.tqcaifu.com/school/schooltitle1.png" alt="">
              <nuxt-link to='/'>更多></nuxt-link>
            </div>
            <ul>
              <li>
                <nuxt-link to="/">熟的方式发送到防守打法第三方熟的方式发送到防守打法第三方</nuxt-link>
              </li>
            </ul>
          </el-col>
          <el-col :span="6" class="newsbox">
           <div class="title">
              <img src="http://img3.tqcaifu.com/school/schooltitle2.png" alt="">
              <nuxt-link to='/'>更多></nuxt-link>
            </div>
            <ul>
              <li>
                <nuxt-link to="/">熟的方式发送到防守打法第三方熟的方式发送到防守打法第三方</nuxt-link>
              </li>
            </ul>
          </el-col>
          <el-col :span="6" class="newsbox">
            <div class="title">
              <img src="http://img3.tqcaifu.com/school/schooltitle3.png" alt="">
              <nuxt-link to='/'>更多></nuxt-link>
            </div>
            <ul>
              <li>
                <nuxt-link to="/">熟的方式发送到防守打法第三方熟的方式发送到防守打法第三方</nuxt-link>
              </li>
            </ul>
          </el-col>
          <el-col :span="6" class="newsbox" >
           <div class="title">
              <img src="http://img3.tqcaifu.com/school/schooltitle4.png" alt="">
              <nuxt-link to='/'>更多></nuxt-link>
            </div>
            <ul class="noborder">
              <li>
                <nuxt-link to="/">熟的方式发送到防守打法第三方熟的方式发送到防守打法第三方</nuxt-link>
              </li>
            </ul>
          </el-col>
        </el-row>
      </div>
  </div>
</template>

<script>
import asyncApi from '../../../static/js/asyncApi.js'
import api from "../../../static/js/api.js";
export default {
  components:{
       
  },
  methods:{
    lingqu(){
      if (this.$store.state.nologin) {
        this.$alert("请登录后预约！");
      } else {
        api
          .contactUs({
            phone: this.$store.state.userinfo.mobile,
            name: "预约咨询"
          })
          .then(res => {
            if (res.code == 1) {
              this.$alert(res.msg);
            } else {
              this.$alert(res.msg);
            }
          });
      }
  
    }
  },
  data() {
    return{
     
    }
  },
  mounted(){

  },
  async asyncData () {
    let [data3] = await Promise.all([
        asyncApi.asyncGetCategoryPost({categoryName:"宏观新闻",page:"1",pageSize:"6",orderBy:"createtime",orderByType:"desc"})
      
    ])
    return {
   
    }
 },
//  head () {
//     return {
//       title: "",
//       meta: [
//          { hid:"keywords",name: 'keywords', content: '' },
//          { hid:"description",name: 'description', content: '' }
//       ]
//     }
//   }
};
</script>


<style scoped>
.school{
  width: 1200px;
  margin: 10px auto;
}
.school1{
  overflow: hidden;
}
.left{
  background: white;
  margin-right: 20px;
  width: 840px;
  float: left;
  box-sizing: border-box;
  padding: 20px 20px 0;
}
.left li{
  overflow: hidden;
}
.right{
  width: 340px;
  float: left;
  box-sizing: border-box;
}
.newsdetail{
    height: 230px;
    width: 100%;   
    transition: all 1s;
}
.newsdetail:hover{
    transform: scale(1.01);
    box-shadow: 0 0 2px #ccc;
}
.newsdetail h1:hover{
    color: #cd9c54;
}
.newsdetail img{
    float: left;
    height: 230px;
    width: 360px;
}
.newsdetail .newsinfo{
    float: left;
    width: 400px;
    height: 200px;
    margin-left: 30px;
}
.newsinfo h1{
    color: #333;
    font-weight: bolder;
    font-size: 30px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 50px;
}
.newsinfo h2{
    color: #666;
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    height: 44px;
    -webkit-box-orient: vertical;
}
.newsinfo p{
    color: #666;
    margin-top: 30px;
}
.newsinfo p span:nth-child(2){
  margin-left: 30px;
}
.newsinfo p a{
   margin-right: 10px;
}
.newsinfo p i{
    margin-right: 10px;
}

.newsdetail2{
  height: 50px;
  line-height: 50px;
}
.newsdetail2:hover a{
  color: #cd9c54;
}
.newsdetail2:hover .dian{
  background: #cd9c54;
}
.newsdetail2:hover .time{
  color: #cd9c54;
}
.dian{
  display: inline-block;
  height: 10px;
  width: 10px;
  background: #333;
  border-radius: 50%;
    vertical-align: middle;
  transform: all 1s;
}
.newsdetail2 a{
  color: #333;
  display: inline-block;
  width: 640px;
  font-size: 18px;
  margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  transform: all 1s;
}
.newsdetail2 .time{
  font-size: 18px;
  color: #333;
    vertical-align: middle;
  margin-left: 10px;
  transform: all 1s;

}



.zhuanti{
  width: 340px;
  height: 180px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}
.zhuanti:hover img{
  transform: scale(1.4);  
}
.zhuanti img{
  width: 100%;
  height: 100%;
  transition: all 0.5s;
}
.zhuanti .msg{
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  left: 0;
  background: rgba(0, 0, 0, .5)
}
.zhuanti .msg h1{
  text-align: center;
  font-size: 22px;
  color: #fff;
  height: 36px;
  line-height: 36px;
}
.zhuanti .msg h1:nth-child(1){
  margin-top: 45px;
}
.zhuanti .msg h1:nth-child(2){
  margin-top: 4px;
}
.zhuanti .msg div{
  width: 90px;
  height: 36px;
  margin: 10px auto 0;
  border: 1px solid #cd9c54;
  color: white;
  line-height: 36px;
  text-align: center;
}
.msg div:hover{
  background: #cd9c54;
  color: white;
}
.msg h2{
width: 160px;
height: 50px;
border: 1px solid #cd9c54;
font-size: 26px;
color: white;
text-align: center;
line-height: 50px;
margin: 10px auto;
}
.msg h2:hover{
  background: #cd9c54;
  cursor: pointer;
}
.erweima img{
  width: 100%;
}

.lanmu{
  margin-top: 10px;
  background: white;
}


.newsbox{
  box-sizing: border-box;
}
.newsbox ul{
  margin-top: 20px;
  padding: 0 20px;
  margin-bottom: 20px;
  border-right: 1px dashed #ccc;
}
.newsbox ul a{
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    color: #333;
}
.title{
  padding: 20px 20px 0;
}
.title a{
  float: right;
  margin-top: 10px;
}
.noborder{
  border: none !important;
}
</style>
